<template>
  <Swiper class="detail-swiper">
    <swiper-item v-for="(item,index) in banner" :key="index">

        <img :src="item" alt="">

    </swiper-item>
  </Swiper>
</template>

<script>
import {Swiper, SwiperItem} from 'components/common/swiper'
export default {
  props:{
    banner:{
      type:Array,
      default:[]
    }
  },
  created() {
    console.log(this.banner)
  },
  name: "detailSwiper",
  components:{
  SwiperItem,Swiper
  }
}
</script>

<style scoped>
  .detail-swiper {
    height: 300px;
    overflow: hidden;
  }
</style>
